//
//  SearchTableViewController.h
//  CloudKaraoke
//
//  Created by BHDMinh on 4/28/14.
//  Copyright (c) 2014 soncamedia. All rights reserved.
//

#import "MainMenuViewController.h"

typedef enum {
    SCCompareNotEqual = -1,
    SCComparePinyin = 0,
    SCCompareTitleRaw = 1,
    SCCompareName = 2
}SCCompareResult;

typedef SCCompareResult (^compareBlock)(id, id);
typedef void (^completeBlock)(void);

@interface SearchTableViewController : MainMenuViewController <UISearchDisplayDelegate, UIGestureRecognizerDelegate,UIScrollViewDelegate>
{
    UISearchBar *searchBar;
    NSString *searchString;
    
    NSMutableArray *displayData;
    NSArray *allData;
    UITableView *tableViewData;
    compareBlock _compareBlock;
    BOOL searchActive;
}
@property (strong, nonatomic) NSArray *allData;
@property (strong, nonatomic) NSMutableArray *displayData;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *loadingIndicator;
//@property (strong, nonatomic) IBOutlet SCTableView *tableViewData;
@property (strong, nonatomic) IBOutlet UITableView *tableViewData;
@property (strong, nonatomic) IBOutlet UISearchBar *searchBar;


- (NSArray *) DataForTableView:(UITableView *)tableView;
@end
